import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from "../BaseUrl";
const { MACURL } = BASEURL;

const agentApi = {
  delete(params) {
    return myaxios.post(MACURL + "/agent/del", params);
  },

  add(params) {
    return myaxios.post(MACURL + "/agent/add", params);
  },

  list() {
    return myaxios.get(MACURL + "/agents");
  },

  queryById(params) {
    return myaxios.get(MACURL + "/agent/query", params);
  },

  update(params) {
    return myaxios.post(MACURL + "/agent/update", params);
  },
};

export default agentApi;
